package com.xiaoshuidi.cloud.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;
import java.util.Set;

@Data
@ConfigurationProperties(prefix = "lease.app-version")
public class AppVersionProperties {
    private boolean check;
    private List<PathMessage> checkPath;
    /**
     * 全局版本
     */
    private Set<String> versions;

    public boolean getCheck() {
        return check;
    }

    @Data
    public static class PathMessage {
        private String path;
        private String message;
        /**
         * 路径指定版本
         */
        private Set<String> version;
    }
}
